package com.zj.authorizationserver.controller;

import com.zj.authorizationserver.mbg.model.OauthClientDetails;
import com.zj.authorizationserver.service.OauthClientDetailsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "OauthClientDetailsController", description = "OauthClientDetailsController")
@RequestMapping("/oauthClientDetails")
public class OauthClientDetailsController {
    @Autowired
    private OauthClientDetailsService oauthClientDetailsService;

    @ApiOperation(value = "根据id获取数据")
    @GetMapping( value = "/selectByPrimaryKey/{id}")
    public OauthClientDetails selectByPrimaryKey(@ApiParam(value = "数据id") @PathVariable String id) {
        //controller 逻辑 
        return oauthClientDetailsService.selectByPrimaryKey(id);
    }
}